import request from '@/utils/request'

// 查询维护人员列表
export function listWorkorderDevops(query) {
  return request({
    url: '/ems/workorderDevops/list',
    method: 'get',
    params: query
  })
}

// 查询维护人员详细
export function getWorkorderDevops(id) {
  return request({
    url: '/ems/workorderDevops/' + id,
    method: 'get'
  })
}

// 新增维护人员
export function addWorkorderDevops(data) {
  return request({
    url: '/ems/workorderDevops',
    method: 'post',
    data: data
  })
}

// 修改维护人员
export function updateWorkorderDevops(data) {
  return request({
    url: '/ems/workorderDevops',
    method: 'put',
    data: data
  })
}

// 删除维护人员
export function delWorkorderDevops(id) {
  return request({
    url: '/ems/workorderDevops/' + id,
    method: 'delete'
  })
}

// 下拉列表
export function workOrderDevopsOptions() {
  return request({
    url: '/ems/workorderDevops/workOrderDevopsOptions',
    method: 'get'
  })
}
